package com.sp2.dev.jdbc.exception;

import java.sql.Connection;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-1-23
 * Time: 下午12:22
 * To change this template use File | Settings | File Templates.
 */
public class BaseDao {
    public DBConnection conn = new DBConnection();

    private Connection connection = null;

    public BaseDao BaseDAO() {
        initConnection();
        return new BaseDao();
    }

    /**
     * 获得数据库连接
     */
    private void initConnection() {
        connection = conn.getConnection();
    }
}
